#ifndef MAINUI_H
#define MAINUI_H

#include <QQmlEngine>
#include <QQuickWidget>

class MainUI : public QQuickWidget
{
    Q_OBJECT
    QML_ELEMENT

signals:
    void nextPage(); // 切换到下一页
    void prevPage(); // 切换到上一页
    void opening(); // 打开
    void program(); // 程序
    void maintenance(); // 维护
    void setting(); // 设置

public:
    MainUI();
    ~MainUI();

public:
    QQmlContext* getContext() const; // 获取qmlcontext
    QObject* getRootObject() const; // 获取rootObject

private:
    QObject *rootObj;

};

#endif // MAINUI_H
